<template>
    <div>
<van-nav-bar title="支付" />
<!-- 密码输入框 -->
<van-password-input
  :value="value"
  :focused="showKeyboard"
  @focus="showKeyboard = true"
/>
<!-- 数字键盘 -->
<van-number-keyboard
  v-model="value"
  :show="showKeyboard"
  @blur="showKeyboard = false"
/>
 <van-button round block type="primary" native-type="submit" @click="dj">
      支付
    </van-button>
    </div>
</template>

<script setup>
import { ref } from 'vue';
import { useRouter } from 'vue-router';
const router =useRouter()
 const value = ref('123123');
    const showKeyboard = ref(true);
    const dj=()=>{
         alert('支付成功')
     router.push('/jg')
    }
</script>

<style lang="scss" scoped>

</style>